<template>
  <div class="hello">
     <table border>
       <tr v-for="item of datas" :key="item.id">
         <td>{{item.id}}</td>
         <td>{{item.name}}</td>
         <td :class="item.status | setStatus | setStatusStyle">
           {{item.status | setStatus}}
         </td>
       </tr>
     </table>
  </div>
</template>

<script>
import datas from '../dates/datas'
import setStatuss from '../filters/setStatus'
export default {
  name: 'HelloWorld', 
  props: {
  },
  filters: setStatuss,
  data() {
    return {
      datas
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
table {
  width: 100%;
  border-collapse: unset;
}
.no-pay {
  color: red
}
.payed {
  color: blue;
}
.pay-old {
  color: gray；
}
</style>
